Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.5K
Views
Error de instalación de mimemagic: "No se pudo encontrar la base de datos de tipo MIME en las siguientes ubicaciones..." en Windows

Me encuentro con el siguiente error cuando intento instalar mimemagic 0.3.10 en un proyecto de Ruby on Rails. Tenga en cuenta que se ejecuta en un entorno Windows. Aquí está el seguimiento de la pila de errores más relevante:

 Fetching mimemagic 0.3.10 Installing mimemagic 0.3.10 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby26/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic C:/Ruby26/bin/ruby.exe -rrubygems C:/Ruby26/lib/ruby/gems/2.6.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=C:/Ruby26/lib/ruby/gems/2.6.0/extensions/x86-mingw32/2.6.0/mimemagic-0.3.10 RUBYLIBDIR\=C:/Ruby26/lib/ruby/gems/2.6.0/extensions/x86-mingw32/2.6.0/mimemagic-0.3.10 rake aborted! Could not find MIME type database in the following locations: ["/usr/local/share/mime/packages/freedesktop.org.xml", "/opt/homebrew/share/mime/packages/freedesktop.org.xml", "/opt/local/share/mime/packages/freedesktop.org.xml", "/usr/share/mime/packages/freedesktop.org.xml"] Ensure you have either installed the shared-mime-info package for your distribution, or obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location of that file. This gem might be installed as a dependency of some bigger package, such as rails, activestorage, axlsx or cucumber. While most of these packages use the functionality of this gem, some gems have included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are certain that you do not need this gem, and wish to skip the inclusion of freedesktop.org.xml.

Tenga en cuenta que estoy respondiendo esta pregunta yo mismo, ya que encontré una solución y quiero compartirla con cualquier otra persona que pueda tener el mismo problema.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Primero, cree un archivo llamado freedesktop.org.xml .

Luego copie el contenido del archivo que se encuentra en este enlace y péguelo en el archivo que acaba de crear.

Finalmente, configure la variable de entorno FREEDESKTOP_MIME_TYPES_PATH

terminales Unix:

 export FREEDESKTOP_MIME_TYPES_PATH=/path/to/freedesktop.org.xml

Símbolo del sistema:

 setx FREEDESKTOP_FILE_PATH "\path\to\freedesktop.org.xml"
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!